package com.lyq.basic.service;

import com.lyq.basic.query.BaseQuery;
import com.lyq.basic.utils.PageList;

import java.io.Serializable;
import java.util.List;

/**
 * @Author:liangyunqian
 * @Date: 2022/12/20  21:31
 * @Description:
 */
public interface IBaseService<T> {
    void insert(T t);

    void deleteById(Serializable id);

    void update(T t);

    List<T> getAll();

    T getById(Serializable id);

    void batchDelete(List<Long> ids);

    PageList<T> listPage(BaseQuery query);

}
